import Vue from 'vue';//引入Vue对象，因为要用它的use
import Router from 'vue-router'//引入vue-router
//引入你需要配置的组件
//导入主页
import homepage from '../components/rjl/view/homepages.vue'


//导入看

import highly from '../components/rjl/page/highly.vue'
//导入5
import New from '../components/rjl/page/New.vue'
//导入我的
import my from '../components/rjl/page/my.vue'

//导入详情
import detail from '../components/rjl/page/detail.vue'
import detail1 from '../components/rjl/page/detail1.vue'
//导入分类
import classify from '../components/rjl/page/classify.vue'

//登录
import login from '../components/rjl/page/login.vue'
//注册
import adminn from '../components/rjl/page/adminn.vue'


//客服
import Customer from '../components/rjl/page/Customer.vue'



//使用路由插件
Vue.use(Router);

//配置路由
const router =  new Router({
    routes: [
        {
            path:"/shouye",
            component: () => import('../components/qupeilong/shouye.vue')
        },
        {
            path:"/faxian",
            component: () => import('../components/qupeilong/faxian.vue')
        },
        {
            path:"/fenlei",
            component: () => import('../components/qupeilong/fenlei.vue')
        },
        {
            path:"/gouwuche",
            component: () => import('../components/qupeilong/gouwuche.vue')
        },
        {
            path:"/yonghu",
            component: () => import('../components/qupeilong/yonghu.vue')
        },
        {
            path:"/jifen",
            component: () => import('../components/qupeilong/yonghus/jifen.vue'),
            meta: {
                keepAlive: true
            }
        },
        {
            path:"/jifenxiangxi",
            component: () => import('../components/qupeilong/yonghus/jifenxiangxi.vue'),
            meta: {
                keepAlive: true
            }
        },
        {
            path:"/wei",
            component: () => import('../components/qupeilong/zujian/liebiao/wei.vue')
        },
        {
            path:"/chang",
            component: () => import('../components/qupeilong/zujian/liebiao/chang.vue')
        },
        {
            path:"/xiangqing",
            component: () => import('../components/qupeilong/zujian/xiangqing.vue')
        },
        //
        {
            path:"/highly",
            component:highly
        },
        {
            path:"/homepage",
            component:homepage
        },
        {
            path:"/New",
            component:New
        },
        {
            path:"/my",
            component:my
        },
        {
            path:"/detail",
            component:detail
        },
        {
            path:"/detail1",
            component:detail1
        },
        
        {
            path:"/classify",
            component:classify
        },
        
        {
            path:"/login",
            component:login
        },
        
        {
            path:"/adminn",
            component:adminn
        },
        
        {
            path:"/Customer",
            component:Customer
        },
        {
            path:"/duihuan",
            component: () => import('../components/qupeilong/yonghus/duihuan.vue'),
        },
        {
            path:"/dizhi",
            component: () => import('../components/qupeilong/yonghus/dizhi.vue'),
        },
 {
        path:"/detail1",
        component:detail1
    },
    {
        path:'/serch',
        component:()=>import('../components/rjl/page/serch')
    }

      
    ]
});

//导出
export default router;